﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CourseManager.Model.Exception;

namespace CourseManager.Model.Data
{
	public class TermDAO
	{
		public static string getCurrentTerm()
		{
			DBEntity ent = new DBEntity();
			var result = (from term in ent.Tab_Term
			             select term).FirstOrDefault();
			if (result == null)
				throw new CMException("");
			return result.termId;
		}
	}
}